package com.glacier.cloud.order.consumer;

import com.glacier.cloud.order.consts.Constant;
import com.glacier.cloud.order.entity.dto.cmd.OrderCreatCmd;
import lombok.extern.slf4j.Slf4j;

import java.util.function.Consumer;

/**
 * date 2024-01-24 22:11
 *
 * @author glacier
 * @version 1.0
 */
@Slf4j
public class OrderCreateCommandConsumer implements Consumer<OrderCreatCmd> {
    @Override
    public void accept(OrderCreatCmd cmd) {
        log.info("接收消息，topic：{}， 内容： {}", Constant.DEMO, cmd);
    }
}
